package com.ph.irp.base.verifyproject.dao;

import java.util.List;

import com.ph.irp.model.PBaseVerifyprojectCandiate;

public interface PBaseVerifyprojectCandiateDao {
	public boolean isSame(String candiateCode)throws Throwable;
	
	public List<PBaseVerifyprojectCandiate> getCandiateList(PBaseVerifyprojectCandiate p)throws Throwable;

	public List<PBaseVerifyprojectCandiate> getCandiateByCode(String code)throws Throwable;
	public List<PBaseVerifyprojectCandiate> getCandiateByName(String name)throws Throwable;
	public List<PBaseVerifyprojectCandiate> getCandiateByCodeAndName(String code,String name)throws Throwable;
	
	public PBaseVerifyprojectCandiate getCandiateById(int candiateId)throws Throwable;
	
	public void addCandiate(PBaseVerifyprojectCandiate candiate)throws Throwable;
	
	public void updateCandiate(PBaseVerifyprojectCandiate candiate)throws Throwable;
	
	public void deleteCandiate(int candiateId)throws Throwable;
	
}
